summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-tasks [TODO]
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/statusbar/sb-tasks [TODO]')
-rwxr-xr-x.local/bin/statusbar/sb-tasks [TODO]16
1 files changed, 0 insertions, 16 deletions
diff --git a/.local/bin/statusbar/sb-tasks [TODO] b/.local/bin/statusbar/sb-tasks [TODO]
deleted file mode 100755
index fbee70b..0000000
--- a/.local/bin/statusbar/sb-tasks [TODO]
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# This block displays the number running background tasks. Requires tsp.
-
-num=$(tsp -l | awk -v numr=0 -v numq=0 '{if (/running/)numr++; if (/queued/)numq++} END{print numr+numq"("numq")"}')
-
-# Handle mouse clicks
-case $BLOCK_BUTTON in
- 1) setsid -f "$TERMINAL" -e tsp -l ;;
- 3) notify-send "Tasks module" "🤖: number of running/queued background tasks
-- Left click opens tsp" ;; # Right click
- 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
-esac
-
-[ "$num" != "0(0)" ] &&
- echo "🤖$num"